package com.mapull.example.section2;

/**
 * IntToString
 *
 * @author mapull
 * @date 2021-09-07
 * @since 1.0
 **/
public class IntToString {
    public static void main(String[] args) {
        Integer year = new Integer(2021);
        String yearString = year.toString();
        System.out.println(yearString);
    }
    public static void main2(String[] args) {
        int countInt = 35;
        String countStr = Integer.toString( countInt );
        System.out.println(countStr);
    }
    public static void main1(String[] args) {
        int countInt = 29;
        String countStr = String.valueOf( countInt );
        System.out.println(countStr);
    }
}
